﻿using System;

namespace Boxi.Extensions
{
    public static partial class ColorExtensions
    {
        /// <summary>
        /// Programmatically Get Complimentary Color
        /// </summary>
        /// <param name="color">Original Color</param>
        /// <returns>Complimentary Color</returns>
        public static System.Windows.Media.Color GetComplimentaryColor(this System.Windows.Media.Color color)
        {
            return System.Windows.Media.Color.FromArgb(color.A, (Byte)(255 - color.R), (Byte)(255 - color.G), (Byte)(255 - color.B));
        }
    }
}
